#ifndef __BUTTON_H__
#define __BUTTON_H__

#include <Arduino.h>
#include <Ticker.h>

//短按
#define BUTTON1_PUSH 1
#define BUTTON2_PUSH 2
#define BUTTON3_PUSH 3
#define BUTTON4_PUSH 4

//长按
#define BUTTON1_LONG_PUSH 5
#define BUTTON2_LONG_PUSH 6
#define BUTTON3_LONG_PUSH 7
#define BUTTON4_LONG_PUSH 8

//按两下
#define BUTTON1_TWO_PUSH 9
#define BUTTON2_TWO_PUSH 10
#define BUTTON3_TWO_PUSH 11
#define BUTTON4_TWO_PUSH 12

//按键初始化
void button_Init(void);

uint8_t get_button_state(void);

#endif